package com.huarui.companypackage.model;

import org.ewaf.framework.model.BaseDataObject;

/**
 * Create Table service ( -- 服务 
 *     id Int AUTO_INCREMENT Primary Key , -- 主键 
 *     code varChar ( 64 ) NOT NULL , -- 服务编号 
 *     name varChar ( 64 ) NOT NULL , --服务名(比如二级市场搜索,二级市场发布) 
 *     target Int NOT NULL -- 适用目标(0=用户,1=公司,2=汽配业务,3=平台业务) );
 * Create Index Index_service_code ON service(code);
 */
public class Service extends BaseDataObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4501385230022972883L;
	public static final int SERVICE_TARGET_COMMON_USER = 0;
	public static final int SERVICE_TARGET_COMPANY = 1;
	public static final int SERVICE_TARGET_CAR_fittings = 2;
	public static final int SERVICE_TARGET_FLAT_SERVICE = 3;
	public static final int SERVICE_SELECTABEL_NOT = 0;
	public static final int SERVICE_SELECTABEL_YES = 1;
	/**
	 * 可直接赠送的服务
	 */
	public static final int SERVICE_PRESSENT = 2;

	private Integer id;
	/**
	 * 服务编号
	 */
	private String code;
	/**
	 * 服务名
	 */
	private String name;
	/**
	 * 服务目标
	 */
	private Integer target = SERVICE_TARGET_COMMON_USER;

	private String targetName;
	
	private Integer selectable = SERVICE_SELECTABEL_NOT;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getTarget() {
		return target;
	}

	public void setTarget(Integer target) {
		this.target = target;
	}

	public Integer getSelectable() {
		return selectable;
	}

	public void setSelectable(Integer selectable) {
		this.selectable = selectable;
	}

	public String getTargetName() {
		return targetName;
	}

	public void setTargetName(String targetName) {
		this.targetName = targetName;
	}

	
}
